//
//  NSCalendar+YCTools.h
//  Pods
//
//  Created by Apple on 2023/4/29.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSCalendar (YCTools)

- (NSDate *)yc_startOfYearForDate:(NSDate *)date;
- (NSDate *)yc_startOfDayForDate:(NSDate *)date;
- (NSDate *)yc_nextStartOfDay:(NSInteger)nNext forDate:(NSDate *)date;
- (NSDate *)yc_startOfMonthForDate:(NSDate *)date;
- (NSDate *)yc_nextStartOfMonth:(NSInteger)nNext forDate:(NSDate *)date;
- (NSInteger)yc_firstWeekdayInThisMotnth:(NSDate *)date;
- (NSInteger)yc_daysOfMonthForDate:(NSDate *)date;
- (NSInteger)yc_weeksOfMonthForDate:(NSDate *)date;

@end

NS_ASSUME_NONNULL_END
